﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2006.ShoppingSite.IRespository
{
    public interface IBaseRespository<T> where T : class,new()
    {
        int Add(T t);
        int Delete(List<dynamic> ids);
        int Update(T t);
        IQueryable<T> Query();
        T QueryById(object id);


        //异步方法

        Task<int> AddAsync(T t);
        Task<int> DeleteAsync(List<dynamic> ids);
        Task<int> UpdateAsync(T t);

    }
}
